<?php
define( 'ROOT_DIR', dirname(__FILE__) .'/');
define('DB_LOG_FILE_PATH', ROOT_DIR."logs/db/");
define('DB_LOG_HISTORY_FILE_PATH', ROOT_DIR."logs/history/db/");
define('LOG_FILE_PATH', ROOT_DIR."logs/common/");
define('LOG_HISTORY_FILE_PATH', ROOT_DIR."logs/history/common/");	

require_once ( 'lib/EDPLogger.php' );
require_once ( 'db_config.inc.php' );
require_once ( 'lib/general.php' );
require_once( 'lib/DB.php' );
require_once( 'lib/city.php');

set_error_handler( 'edp_error_handler' );
set_exception_handler('exception_handler');
set_time_limit(0);

//define('TAOBAOKE_ID','淘出财');

//global variable here
$cateList = array(
///		'特价机票/门票旅游/酒店客栈' => array( 'cid' => '50011949', 'pageno' => '3' ),
    '数码相机/摄像机/摄影器材' => array( 'cid' => '14', 'pageno' => '3' ),
///		'电玩/配件/游戏/攻略' => array( 'cid' => '20', 'pageno' => '1' ),
    '3C数码配件市场' => array( 'cid' => '50008090', 'pageno' => '1' ),
    '电脑硬件/显示器/电脑周边' => array( 'cid' => '11', 'pageno' => '1' ),
    '网络设备/网络相关' => array( 'cid' => '50018264', 'pageno' => '1' ),
    '台式机/一体机/服务器' => array( 'cid' => '50018222', 'pageno' => '1' ),
    '闪存卡/U盘/存储/移动硬盘' => array( 'cid' => '50012164', 'pageno' => '2' ),
///		'办公设备/耗材/相关服务' => array( 'cid' => '50007218', 'pageno' => '1' ),
///		'电子词典/电纸书/文化用品' => array( 'cid' => '50018004', 'pageno' => '3' ),
    '居家日用/收纳/礼品' => array( 'cid' => '21', 'pageno' => '1' ),
    '厨房/餐饮用具' => array( 'cid' => '50016349', 'pageno' => '3' ),
    '日化/清洁/护理' => array( 'cid' => '50016348', 'pageno' => '3' ),
    '床上用品/靠垫/毛巾/布艺' => array( 'cid' => '50008163', 'pageno' => '3' ),
    '家装饰品/窗帘/地毯' => array( 'cid' => '2128', 'pageno' => '3' ),
    '奶粉/辅食/营养品' => array( 'cid' => '35', 'pageno' => '1' ),
///		'尿片/洗护/喂哺等用品' => array( 'cid' => '50014812', 'pageno' => '3' ),
///		'益智玩具/早教/童车床/出行' => array( 'cid' => '50005998', 'pageno' => '3' ),
    '童装/童鞋/孕妇装' => array( 'cid' => '50008165', 'pageno' => '1' ),
    '零食/坚果/茶叶/特产' => array( 'cid' => '50002766', 'pageno' => '2' ),
///		'滋补/生鲜/速食/订餐' => array( 'cid' => '50016422', 'pageno' => '3' ),
    '保健食品' => array( 'cid' => '50012472', 'pageno' => '2' ),
    'MP3/MP4/iPod/录音笔' => array( 'cid' => '1201', 'pageno' => '3' ),
    '手机' => array( 'cid' => '1512', 'pageno' => '10' ),
///		'国货精品手机' => array( 'cid' => '50012081', 'pageno' => '3' ),
///		'腾讯QQ专区' => array( 'cid' => '40', 'pageno' => '3' ),
    '笔记本电脑' => array( 'cid' => '1101', 'pageno' => '3' ),
    '运动/瑜伽/健身/球迷用品' => array( 'cid' => '50010728', 'pageno' => '2' ),
    '户外/登山/野营/旅行用品' => array( 'cid' => '50013886', 'pageno' => '2' ),
    '运动服/运动包/颈环配件' => array( 'cid' => '50011699', 'pageno' => '2' ),
    '运动鞋' => array( 'cid' => '50010388', 'pageno' => '3' ),
///		'玩具/模型/娃娃/人偶' => array( 'cid' => '25', 'pageno' => '3' ),
///		'网游装备/游戏币/帐号/代练' => array( 'cid' => '50011665', 'pageno' => '3' ),
///		'IP卡/网络电话/手机号码' => array( 'cid' => '50008907', 'pageno' => '3' ),
///		'网络游戏点卡' => array( 'cid' => '99', 'pageno' => '3' ),
///		'古董/邮币/字画/收藏' => array( 'cid' => '23', 'pageno' => '3' ),
///		'家具/家具定制/宜家代购' => array( 'cid' => '50008164', 'pageno' => '3' ),
    '鲜花速递/花卉仿真/绿植园艺' => array( 'cid' => '50007216', 'pageno' => '1' ),
    '汽车/用品/配件/改装/摩托' => array( 'cid' => '26', 'pageno' => '1' ),
///		'移动/联通/小灵通充值中心' => array( 'cid' => '50004958', 'pageno' => '3' ),
    '装潢/灯具/五金/安防/卫浴' => array( 'cid' => '27', 'pageno' => '1' ),
    '品牌手表/流行手表' => array( 'cid' => '50005700', 'pageno' => '3' ),
    '彩妆/香水/美发/工具' => array( 'cid' => '50010788', 'pageno' => '3' ),
    '流行男鞋' => array( 'cid' => '50011740', 'pageno' => '5' ),
    '女装/女士精品' => array( 'cid' => '16', 'pageno' => '10' ),
///		'音乐/影视/明星/音像' => array( 'cid' => '34', 'pageno' => '3' ),
    '女鞋' => array( 'cid' => '50006843', 'pageno' => '5' ),
    '箱包皮具/热销女包/男包' => array( 'cid' => '50006842', 'pageno' => '5' ),
    '男装' => array( 'cid' => '30', 'pageno' => '10' ),
    '女士内衣/男士内衣/家居服' => array( 'cid' => '1625', 'pageno' => '3' ),
    '服饰配件/皮带/帽子/围巾' => array( 'cid' => '50010404', 'pageno' => '4' ),
    '珠宝/钻石/翡翠/黄金' => array( 'cid' => '50011397', 'pageno' => '2' ),
    'ZIPPO/瑞士军刀/眼镜' => array( 'cid' => '28', 'pageno' => '2' ),
//		'书籍/杂志/报纸' => array( 'cid' => '33', 'pageno' => '3' ),
//		'宠物/宠物食品及用品' => array( 'cid' => '29', 'pageno' => '3' ),
    '成人用品/避孕/计生用品' => array( 'cid' => '2813', 'pageno' => '1' ),
//		'其它' => array( 'cid' => '50011150', 'pageno' => '3' ),
    '厨房电器' => array( 'cid' => '50012082', 'pageno' => '3' ),
    '生活电器' => array( 'cid' => '50012100', 'pageno' => '3' ),
    '个人护理/保健/按摩器材' => array( 'cid' => '50002768', 'pageno' => '3' ),
    '影音电器' => array( 'cid' => '50011972', 'pageno' => '3' ),
    '美容护肤/美体/精油' => array( 'cid' => '1801', 'pageno' => '4' ),
///		'演出/吃喝玩乐折扣券' => array( 'cid' => '50008075', 'pageno' => '3' ),
    '饰品/流行首饰/时尚饰品新' => array( 'cid' => '50013864', 'pageno' => '2' )
///		'二维码凭证' => array( 'cid' => '50018252', 'pageno' => '3' ),
///		'世博会特许商品' => array( 'cid' => '50014442', 'pageno' => '3' ),
///		'网店/网络服务/个性定制/软件' => array( 'cid' => '50014811', 'pageno' => '3' ),
///		'乐器/吉他/钢琴/配件' => array( 'cid' => '50017300', 'pageno' => '3' ),
///		'彩票' => array( 'cid' => '50017908', 'pageno' => '3' )
);

/*
 * ========================================================
 * Add Shop Status
 * ========================================================
 */
define("ADDSHOP_STATUS_SUCCESS", 1);
define("ADDSHOP_STATUS_MISS_KEY_DATA", 2);
define("ADDSHOP_STATUS_MISS_REG_DATA", 3);
define("ADDSHOP_STATUS_MISS_TAOBAOAPI_DATA", 4);
define("ADDSHOP_STATUS_UNKOWNN_PLATFORM", 5);
define("SHOP_FORBIDDEN", 9);

define('TAOBAO_PIC_PREFIX','http://logo.taobao.com/shop-logo');		
?>
